﻿<UserControl x:Class="WpfImageReceiver.CameraHandlerView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <WrapPanel Orientation="Horizontal">
        <Border Margin="2,2,2,2" BorderBrush="Black" BorderThickness="1,1,1,1" Width="300" Height="Auto">
            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="160"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Text="RotateFlip: " />
                <ComboBox Grid.Column="1" ItemsSource="{Binding Mode=OneWay, Path=AllFrameImageFlipTypes}" SelectedValue="{Binding Mode=TwoWay, Path=FrameImageFlipType}"
                          HorizontalAlignment="Stretch" FontSize="10"/>
            </Grid>
        </Border>
        <Border Margin="2,2,2,2" BorderBrush="Black" BorderThickness="1,1,1,1" Width="300" Height="Auto">
            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="160"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Text="Frames Processed: "/>
                <TextBlock Grid.Column="1" Text="{Binding FramesProcessed}"/>
            </Grid>
        </Border>
        <Border Margin="2,2,2,2" BorderBrush="Black" BorderThickness="1,1,1,1" Width="300" Height="Auto">
            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="160"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Text="CurrentTimeBetweenFrames: "/>
                <TextBlock Grid.Column="1" Text="{Binding CurrentTimeBetweenFrames}"/>
            </Grid>
        </Border>
        <Border Margin="2,2,2,2" BorderBrush="Black" BorderThickness="1,1,1,1" Width="300" Height="Auto">
            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="160"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Text="FPS"/>
                <TextBlock Grid.Column="1" Text="{Binding FPS, StringFormat=N2}" />
            </Grid>
        </Border>
        <Border Margin="2,2,2,2" BorderBrush="Black" BorderThickness="1,1,1,1" Width="300" Height="Auto">
            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="160"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Text="ProcessingThreadPriority: "/>
                <TextBlock Grid.Column="1" Text="{Binding ProcessingThreadPriority}"/>
            </Grid>
        </Border>
        <Border Margin="2,2,2,2" BorderBrush="Black" BorderThickness="1,1,1,1" Width="300" Height="Auto">
            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="160"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Text="LastProcessedFrame: "/>
                <TextBlock Grid.Column="1" Text="{Binding LastProcessedFrame}"/>
            </Grid>
        </Border>        
    </WrapPanel>
</UserControl>
